-
Notifications
You must be signed in to change notification settings - Fork 144
[hook: ironic_network] Opt out provisioning router #3485
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[hook: ironic_network] Opt out provisioning router #3485
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Merge Failed. This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset. |
5b044fb to
eb70881
Compare
danpawlik
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Choose one solution.
Add another boolean parameter to allow not creaing the router on the ironic provisioning network. Signed-off-by: Harald Jensås <[email protected]>
eb70881 to
f2f46e0
Compare
danpawlik
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the whole playbook require refactor - vars should be "converted" to default vaules to give possibility to overwrite them without file modification - https://docs.ansible.com/projects/ansible/latest/playbook_guide/playbooks_variables.html#understanding-variable-precedence
We already override these parameters in jobs, and it absolutely does work. Examples where we override the variables for this playbook: |
I know how it works and where it is applied. It is just not correct to Ansible good practices. I skip topic related to nested ansible execution, but as I mentioned, if the idea is to overwrite the default values, better is to set default value via |
Ok, I can do a follow up to re-factor this and some other hooks that follow the same (anti-)pattern. 👍 |
|
will require much work, but maybe one day it would happen. Thanks for this PR! |
Add another boolean parameter to allow not creaing the router on the ironic provisioning network.